/* 
 * Copyright [2018] [Alex/libo(liboms@hotmail.com)]
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.hyts.guava.config;

import java.nio.charset.Charset;

import com.google.common.base.Charsets;

/** 
 * @title Charsets.java  
 * @package com.hyts.guava.config  
 * @description Charsets 针对所有 Java 平台都要保证支持的六种字符集提供了常量引用。<br>
  				   尝试使用这些常量，而不是通过名称 获取字符集实例。<br>  
 * @see com.google.common.base.Charsets
 * @author libo/Alex
 * @email liboms@hotmail.com/liboware@163.com  
 * @date 2018年5月5日 
 * @version V1.0 
 */
public enum CharsetConfig {
	/**
	 * @fieldName: UTF_8
	 * @fieldType: GuavaCharset
	 * @Description: UTF-8编码
	 */
	UTF_8(Charsets.UTF_8),
	/**
	 * @fieldName: UTF_16
	 * @fieldType: GuavaCharset
	 * @Description: UTF-16编码
	 */
	UTF_16(Charsets.UTF_16),
	/**
	 * @fieldName: ISO8859_1
	 * @fieldType: GuavaCharset
	 * @Description: ISO-8859-1编码
	 */
	ISO8859_1(Charsets.ISO_8859_1),
	/**
	 * @fieldName: ASCII
	 * @fieldType: GuavaCharset
	 * @Description: ASCII编码
	 */
	ASCII(Charsets.US_ASCII);
	
	
	private Charset charset;
	
	
	private CharsetConfig(Charset charset) {
		this.charset = charset;
	}

	public Charset getCharset() {
		return charset;
	}

	public void setCharset(Charset charset) {
		this.charset = charset;
	}
}
